package netty2;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class equal1 {
    public static void main(String[] args) {
        U1 u1 = new U1();
        u1.setName("ytt");
        U1 u2 = new U1();
        u2.setName("ytt");
        System.out.println(u1.equals(u2));

        HashMap<String, String> map = new HashMap<>();
        map.put("name","ytt");
        map.put("address","sd");

        Set<Map.Entry<String, String>> entries = map.entrySet();
        Map.Entry<String, String> next = entries.iterator().next();
//        next.
    }
}

@Data
@EqualsAndHashCode
class U1{
    public String name;
}
